<?php

/**
 * @desc Languages block. 
 *
 */
class Kernel_Block_Langs extends Kernel_Block 
{

    /**
     * @desc Return template data. 
     *
     * @return  array
     */
    public function getData() 
    {
        $langs = array();
        foreach (__langs() as $lang) {
            $langs[] = array(
                  'code' => $lang['code'], 
                  'name' => $lang['name'],
                'active' => $lang['code'] == __lang(),
            );
        }
        return array('_langs' => $langs);
    }
    
}
